package com.ydkj.a37e_mall.Classes.Model.Response;

import java.util.List;

/**
 * Created by hong on 2016/3/24.
 */
public class ProductParameterResp {

    /**
     * errno : 000
     * errmsg :
     * result : {"data":[{"type":"重量","is_selected":1,"detail":[{"id":7,"name":"120g","type":"重量","description":"参数描述","created_at":"2016-03-08 13:55:05","updated_at":"2016-03-08 13:55:07","is_selected":1},{"id":8,"name":"200g","type":"重量","description":"参数描述","created_at":"2016-03-08 15:34:49","updated_at":"2016-03-08 15:34:52","is_selected":1}]},{"type":"产地","is_selected":1,"detail":[{"id":14,"name":"中国","type":"产地","description":"参数描述","created_at":"2016-03-14 11:03:37","updated_at":"2016-03-14 11:03:37","is_selected":1}]}],"total_page":"","current_page":"","total":"","access_token":""}
     */

    private String errno;
    private String errmsg;
    /**
     * data : [{"type":"重量","is_selected":1,"detail":[{"id":7,"name":"120g","type":"重量","description":"参数描述","created_at":"2016-03-08 13:55:05","updated_at":"2016-03-08 13:55:07","is_selected":1},{"id":8,"name":"200g","type":"重量","description":"参数描述","created_at":"2016-03-08 15:34:49","updated_at":"2016-03-08 15:34:52","is_selected":1}]},{"type":"产地","is_selected":1,"detail":[{"id":14,"name":"中国","type":"产地","description":"参数描述","created_at":"2016-03-14 11:03:37","updated_at":"2016-03-14 11:03:37","is_selected":1}]}]
     * total_page :
     * current_page :
     * total :
     * access_token :
     */

    private ResultEntity result;

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        private String total_page;
        private String current_page;
        private String total;
        private String access_token;
        /**
         * type : 重量
         * is_selected : 1
         * detail : [{"id":7,"name":"120g","type":"重量","description":"参数描述","created_at":"2016-03-08 13:55:05","updated_at":"2016-03-08 13:55:07","is_selected":1},{"id":8,"name":"200g","type":"重量","description":"参数描述","created_at":"2016-03-08 15:34:49","updated_at":"2016-03-08 15:34:52","is_selected":1}]
         */

        private List<DataEntity> data;

        public String getTotal_page() {
            return total_page;
        }

        public void setTotal_page(String total_page) {
            this.total_page = total_page;
        }

        public String getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(String current_page) {
            this.current_page = current_page;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            private String type;
            private int is_selected;
            /**
             * id : 7
             * name : 120g
             * type : 重量
             * description : 参数描述
             * created_at : 2016-03-08 13:55:05
             * updated_at : 2016-03-08 13:55:07
             * is_selected : 1
             */

            private List<DetailEntity> detail;

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public int getIs_selected() {
                return is_selected;
            }

            public void setIs_selected(int is_selected) {
                this.is_selected = is_selected;
            }

            public List<DetailEntity> getDetail() {
                return detail;
            }

            public void setDetail(List<DetailEntity> detail) {
                this.detail = detail;
            }

            public static class DetailEntity {
                private int id;
                private String name;
                private String type;
                private String description;
                private String created_at;
                private String updated_at;
                private int is_selected;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getDescription() {
                    return description;
                }

                public void setDescription(String description) {
                    this.description = description;
                }

                public String getCreated_at() {
                    return created_at;
                }

                public void setCreated_at(String created_at) {
                    this.created_at = created_at;
                }

                public String getUpdated_at() {
                    return updated_at;
                }

                public void setUpdated_at(String updated_at) {
                    this.updated_at = updated_at;
                }

                public int getIs_selected() {
                    return is_selected;
                }

                public void setIs_selected(int is_selected) {
                    this.is_selected = is_selected;
                }
            }
        }
    }
}
